@import '../../common/styles/theme/default.less';

.hr-popup {
  &-mask {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.3;
  }

  &-main {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 60%;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #f8f8f8;
  }

  &-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
    padding: 20px 30px;
    color: @font-color-primary;
    font-size: 34px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }

  &-body {
    height: calc(100% - 92px);
  }

  &-header-left,
  &-header-right {
    flex-basis: 120px;
    color: @brand-primary;
  }

  &-header-right {
    text-align: right;
  }

  .hr-popup-title {
    flex: 1;
    flex-wrap: nowrap;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    word-break: keep-all;
  }

  .hr-popup-body {
    height: calc(100% - 80px);
  }
}
